package model;

public class Matrix {
	protected double[][] matrix;
	protected int numberColumns;
	protected int numberRows;
	public int getNumberRows() {
		return numberRows;
	}
	public int getNumberColumns() {
		return numberColumns;
	}
	public double getMatrixElement(int row, int column){
		return matrix[row][column];
	}
	public void setMatrixElement(int row, int column, double value){
		if(row>=0&&column>=0&&row<numberColumns&&column<numberColumns){
			matrix[row][column]=value;
		}		
	}
	public void resetMatrix(){
		matrix = new double[numberRows][numberColumns];
	}
	public double[][] getMatrix(){
		return matrix;
	}
}
